package com.guigu.basedservice.service;

import com.github.pagehelper.PageInfo;
import com.guigu.basedservice.dto.BasePartsTypeDTO2;
import com.guigu.basedservice.dto.BasePartsTypeDto;
import com.guigu.basedservice.dto.TreeNode;
import com.guigu.basedservice.entity.BaseCarType;
import com.guigu.basedservice.entity.BasePartsType;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.basedservice.vo.BaseCarTypeVo;
import com.guigu.basedservice.vo.BasePartsTypeVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 配件目录 服务类
 * </p>
 *
 * @author Heyuhang
 * @since 2024-09-13
 */
public interface BasePartsTypeService extends IService<BasePartsType> {

    PageInfo<BasePartsType> show(BasePartsTypeVo vo, Integer currentPage, Integer pageSize);

    List<BasePartsType> getTreeStructure();

    List<BasePartsType> findByCondition(String name);

    int addManyBasePartsType(List<BasePartsType> list);



    List<BasePartsType> getRootNodes();

    List<BasePartsType> getChildNodes(@Param("parentUuid") String parentId);

    List<BasePartsType> getRecursiveSql();


}
